/**
 * 
 */
package org.crystal.jqweb.ajaxtree;

import java.util.List;

import org.crystal.jqweb.json.Json;

/**
 * @author Crystal
 *
 */
public final class AjaxAdubyTree {
	
	@Json
	String id;
	@Json
	String data="AjaxAdubyTreeItem";
	@Json
	String jsaction;
	@Json
	String pid="-1";
	@Json
	String state="closed";
	@Json
	String icons;
	@Json
	boolean haschild=false;
	
	List children;
	/**
	 * 
	 */
	public AjaxAdubyTree() {
		super();
		// TODO Auto-generated constructor stub
	}
	/**
	 * @param id
	 * @param data
	 * @param jsaction
	 * @param state
	 * @param icons
	 * @param haschild
	 */
	public AjaxAdubyTree(String id, String data, String jsaction, String state,
			String icons, boolean haschild) {
		super();
		this.id = id;
		this.data = data;
		this.jsaction = jsaction;
		this.state = state;
		this.icons = icons;
		this.haschild = haschild;
	}
	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}
	/**
	 * @return the data
	 */
	public String getData() {
		return data;
	}
	/**
	 * @param data the data to set
	 */
	public void setData(String data) {
		this.data = data;
	}
	/**
	 * @return the jsaction
	 */
	public String getJsaction() {
		return jsaction;
	}
	/**
	 * @param jsaction the jsaction to set
	 */
	public void setJsaction(String jsaction) {
		this.jsaction = jsaction;
	}
	/**
	 * @return the state
	 */
	public String getState() {
		return state;
	}
	/**
	 * @param state the state to set
	 */
	public void setState(String state) {
		this.state = state;
	}
	/**
	 * @return the icons
	 */
	public String getIcons() {
		return icons;
	}
	/**
	 * @param icons the icons to set
	 */
	public void setIcons(String icons) {
		this.icons = icons;
	}
	/**
	 * @return the haschild
	 */
	public boolean getHaschild() {
		return haschild;
	}
	/**
	 * @param haschild the haschild to set
	 */
	public void setHaschild(boolean haschild) {
		this.haschild = haschild;
	}
	/**
	 * @return the children
	 */
	public List getChildren() {
		return children;
	}
	/**
	 * @param children the children to set
	 */
	public void setChildren(List children) {
		this.children = children;
	}
	
	public String  toJsonString() {
		
		return "";
	}
	/**
	 * @return the pid
	 */
	public String getPid() {
		return pid;
	}
	/**
	 * @param pid the pid to set
	 */
	public void setPid(String pid) {
		this.pid = pid;
	}
}
